import { postRequest, getRequest } from '/@/lib/axios';

export const pwrordApi = {

  queryPage: (param) => {
    return postRequest('/pwrord/queryPage', param);
  },

  add: (param) => {
    return postRequest('/pwrord/add', param);
  },

  update: (param) => {
    return postRequest('/pwrord/update', param);
  },

  delete: (id) => {
    return getRequest(`/pwrord/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/pwrord/batchDelete', idList);
  },

  info: (id) => {
    return getRequest(`/pwrord/info/${id}`);
  },

  infoUnexecute: (id) => {
    return getRequest(`/pwrord/infoUnexecute/${id}`);
  },
};
